package com.lanou3g.hw0408;

/**
 * Created by dllo on 18/4/8.
 */
public class Main {
    public static void main(String[] args) {
        Car car1 = new Car("迈巴赫", "高级轿车", 5);
        car1.attribute();
        Car car = new Car();
        car.setName("奔驰");
        car.setCategory("轿车");
        car.setLength(5);
        car.attribute();


        Ship ship1 = new Ship("轮船", 10000, 20);
        ship1.specifications();
        Ship ship = new Ship();
        ship.setName("游艇");
        ship.setSpeed(30);
        ship.setWeight(1000);
        ship.specifications();

    }
}
